cmake_minimum_required(VERSION 3.10)

project(ONVIF_CLEINT C)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -ggdb -Wall")

include_directories(${PROJECT_SOURCE_DIR}/
					/usr/share/gsoap/plugin/
					/usr/share/gsoap/custom/)

set(GSOAP_SRCS 
	./soapC.c
	./soapClient.c
	/usr/share/gsoap/plugin/wsaapi.c
	/usr/share/gsoap/custom/duration.c)
	
set(CLIENT_SRCS ${GSOAP_SRCS}
	./main.c)

add_executable(client ${CLIENT_SRCS}) 

target_link_libraries(client gsoap)